package vip.xiaonuo.dev.modular.wechat.enums;

import lombok.Getter;

/**
 * 企业微信请求枚举类
 *
 */
@Getter
public enum WechatUrlEnum {
    /** 请求基础 */
    BASE_URL("https://qyapi.weixin.qq.com/cgi-bin/gettoken"),

    /** 获取部门id列表 */
    GET_DEPARTMENT("https://qyapi.weixin.qq.com/cgi-bin/department/simplelist?"),

    /** 获取单个部门详情  */
    GET_DEPARTMENT_DETAIL("https://qyapi.weixin.qq.com/cgi-bin/department/get?"),

    /** 获取成员ID列表  */
    GET_DEPARTMENT_USER("https://qyapi.weixin.qq.com/cgi-bin/user/list?"),

    /** 获取用户 */
    CREATE_TAG("https://qyapi.weixin.qq.com/cgi-bin/tag/create?access_token="),

    /** 获取企业的jsapi_ticket */
    GET_JSAPI_TICKET("https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token="),

    /** 获取应用的jsapi_ticket */
    GET_JS_TICKET("https://qyapi.weixin.qq.com/cgi-bin/ticket/get?type=agent_config&access_token="),

    /** 获取登录用户详情 */
    GET_LOGIN_USERINFO("https://qyapi.weixin.qq.com/cgi-bin/auth/getuserinfo?access_token="),

    /** 获取登录用户详情 */
    ADD_TAG_USER("https://qyapi.weixin.qq.com/cgi-bin/tag/create?"),

    /** 消息发送 */
    SEND_MESSAGE("https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token="),

    /** 创建日历 */
    ADD_CALENDAR("https://qyapi.weixin.qq.com/cgi-bin/oa/calendar/add?access_token="),

    /** 创建日程 */
    ADD_SCHEDULE("https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/add?access_token="),

    /** 获取用户Id */
    GET_USERID("https://qyapi.weixin.qq.com/cgi-bin/user/getuserid?access_token=");

    private String value;

    WechatUrlEnum(String value) {
        this.value = value;
    }


}
